﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SCCN.BLL;
using SCCN.DAL;
using SCCN.Utility;
using System.Text;

/// <summary>
///CreateHeader 的摘要说明
/// </summary>
public class CreateBottom : CreatePage
{
    public CreateBottom()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    /// <summary>
    /// 生成
    /// </summary>
    /// <returns></returns>
    public static bool Create()
    {
        string path = ReaderTemplate("~/template/bottom.html");
        string content = Fun_Rapalce_Tag(path);
        try
        {
            CreateHTMLHelper.CreateFile(HttpContext.Current.Server.MapPath("~/bottom.htm"), CreatePage.encode, content);
        }
        catch (Exception ex)
        {
            throw ex;
        }
        return true;
    }

    /// <summary>
    /// 替换页面标签
    /// </summary>
    /// <param name="content"></param>
    /// <returns></returns>
    public static string Fun_Rapalce_Tag(string content)
    {
        //标签存放字典
        Dictionary<string, string> dict = new Dictionary<string, string>(); 
        content = CreateHTMLHelper.ReplaceTag(dict, content);
        return content;
    } 
}